package com.qcby.ssm.service.impl;

import com.qcby.ssm.mapper.EmpMapper;
import com.qcby.ssm.pojo.Emp;
import com.qcby.ssm.pojo.Student;
import com.qcby.ssm.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FindAllEmpImpl implements EmpService {

    @Autowired
    private EmpMapper empMapper;

    @Override
    public List<Emp> findAllEmp() {
        return empMapper.findAllEmp();
    }

    @Override
    public Emp findEmpById(Integer id){
        return empMapper.findEmpById(id);
    }

    @Override
    public int deleteEmp(Integer id) {
        return empMapper.deleteEmp(id);
    }

}
